package com.bingo.datasecurity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bingo.datasecurity.annotation.EncryptMethod;
import com.bingo.datasecurity.annotation.EncryptParam;
import com.bingo.datasecurity.entity.po.AccountPo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AccountMapper extends BaseMapper<AccountPo> {


    /**
     * 通过账户名修改密码
     */
    @EncryptMethod
    void updatePasswordByAccount(@Param("account") String account
            , @EncryptParam("password") @Param("password") String password);
}
